﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Benefit.Models.View;
namespace Benefit.Interface.View
{
    /// <summary>
    /// 交易员日品种交易情况
    /// </summary>
    public interface IOperatorDayProductInfo
    {
        /// <summary>
        /// 获取处理过的交易员品种交易信息(这个方法不用加工)
        /// </summary>
        /// <param name="tradeHistoryId"></param>
        /// <param name="operatorid"></param>
        /// <param name="db"></param>
        /// <returns></returns>
        List<OperatorDayProductInfo> GetSortedOperatorDayProductInfo(int tradeHistoryId, int operatorid);

        /// <summary>
        /// 得到不分多空方向的品种交易信息
        /// </summary>
        /// <param name="tradeHistoryId"></param>
        /// <param name="operatorid"></param>
        /// <returns></returns>
        List<OperatorDayProductInfo> GetOperatorDayProductInfoIgnoreDirection(int tradeHistoryId, int operatorid);

        /// <summary>
        /// 得到分多空方向的品种交易信息
        /// </summary>
        /// <param name="tradeHistoryId"></param>
        /// <param name="operatorid"></param>
        /// <returns></returns>
        List<OperatorDayProductInfo> GetOperatorDayProductInfo(int tradeHistoryId, int operatorid);

        /// <summary>
        /// 得到分多空方向的品种交易信息
        /// </summary>
        /// <param name="tradeHistoryId"></param>
        /// <param name="operatorid"></param>
        /// <returns></returns>
        List<OperatorDayProductInfo> GetOperatorMonthProductInfo(int month, int year, int operatorid);

        /// <summary>
        /// 得到分多空方向的品种交易信息
        /// </summary>
        /// <param name="tradeHistoryId"></param>
        /// <param name="operatorid"></param>
        /// <returns></returns>
        void IntiOperatorDayProductInfo(int tradeHistoryId);
        List<OperatorDayProductInfo> GetOperatorDayProductInfo(int tradeHistoryId, int operatorid, bool win);

        void Delete(int tradeHistoryId);

        OperatorDayProductInfo FenZhuangShuJu(Benefit.Models.Day.AccountDayTradeProduct p, string productid);
    }
}
